from .detector_base import DetectorBase

class YOLOv8Detector(DetectorBase):
    def __init__(self, model, conf_thres, device):
        self.model = model
        self.conf_thres = conf_thres
        self.device = device
        print(f"[YOLOv8] 初始化: model={model}, conf={conf_thres}, device={device}")

    def detect(self, frame):
        # 模拟检测结果
        print("[YOLOv8] 检测中...")
        return [{"x": 100, "y": 120, "w": 50, "h": 80, "score": 0.9, "label": "person"}]
